<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <script src="/static/js/axios-1.10.0.js"></script>
</head>
<body>
    <h1>OAuth2</h1>

    <hr>
    <hr>
    <hr>
    <button onclick="doAjax()">发送Ajax请求</button>


    <script>
        function doAjax() {
            axios.get('http://www.laravel71201.cm/api/test001')
                .then(response => {
                    console.log(response.data);
                })
                .catch (response => {
                    console.error(response);
                });
        }
    </script>
</body>
</html>